<?php

namespace app\shopapi\controller;

use app\admin\model\Shop;
use app\common\controller\Shopapi;
use think\Db;
use think\Request;

/**
 * 店铺订单接口
 */
class Index extends Shopapi
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    //配置
    public function config()
    {
        $data = [
            'shop_logo'=>\app\common\model\Config::get(['name'=>'shop_logo'])->value,
            'shop_kefu_mobile'=>\app\common\model\Config::get(['name'=>'shop_kefu_mobile'])->value,
            'shop_aboutus'=>\app\common\model\Config::get(['name'=>'shop_aboutus'])->value,
            'shop_privacy_agreement'=>\app\common\model\Config::get(['name'=>'shop_privacy_agreement'])->value,
            'shop_agreement'=>\app\common\model\Config::get(['name'=>'shop_agreement'])->value,
        ];
        $this->success('请求成功',$data);
    }
}